Fast Incremental Planarity Testing

نویسنده

  • Jeffery Westbrook
چکیده

The incremental planarity testing problem is to perform the following operations on a biconnected planar graph G of at most n vertices: test if an edge can be added between two vertices while preserving planarity; add edges and vertices that preserve planarity. Let m be the total number of operations. We present fast data structures for this problem that can be used in conjunction with the previous algorithm of Di Battista and Tamassia to achieve an O((m; n)) worst-case amortized time per test operation. If the graph is bicon-nected, a sequence of n additions can be performed in total time O(mm(m;n)) worst-case plus O(n) expected time. Our tree data structure is exible and can answer in O(1) time queries about parents, roots, and nearest common ancestors while performing tree modiications such as inserting nodes, cutting edges, and merging or splitting nodes. If the graph is not biconnected then insertions of edges and vertices require O(log n) amortized expected time per operation. The study of graph planarity has a long and rich history. The oo-line planarity testing problem, in which one must test if a given graph is planar, has been studied since the nineteen-sixties. If can be solved in O(n) sequential time 3, 12] and O(log n) time on a CRCW PRAM 17]. Recently Di Battista and Tamassia introduced and studied the incremental planarity testing problem 1, 2]: beginning with a biconnected graph G process on-line an intermingled sequence of the following query and update operations. 1. Test(u; v): Determine if an edge can be inserted between vertices u and v of while still preserving the planarity of G. 2. Insert Vertex(v; e): Split edge e into two edges e 1 , e 2 by inserting a new vertex v. Return e 1 and e 2. 3. Insert Edge(u; v): Insert a new edge e between u and v. Return e. The insertion must preserve planarity. The above repertoire of operations is suucient to construct any biconnected pla-nar graph. A related problem is static on-line testing problem, in which one must preprocess a xed planar graph G so as to answer on-line a sequence of Test(u; v) operations. Di Battista and Tamassia gave an algorithm that performs Test(u; v) in

برای دانلود رایگان متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

A Linear-Time Algorithm for Finding a Maximal Planar Subgraph

We construct an optimal linear-time algorithm for the maximal planar subgraph problem: given a graph G, find a planar subgraph G′ of G such that adding to G′ an extra edge of G results in a non-planar graph. Our solution is based on a fast data structure for incremental planarity testing of triconnected graphs and a dynamic graph search procedure. Our algorithm can be transformed into a new opt...

متن کامل

Incremental Convex Planarity Testing

An important class of planar straight-line drawings of graphs are convex drawings, in which all the faces are drawn as convex polygons. A planar graph is said to be convex planar if it admits a convex drawing. We give a new combinatorial characterization of convex planar graphs based on the decomposition of a biconnected graph into its triconnected components. We then consider the problem of te...

متن کامل

Stop Minding Your P's and Q's: Implementing a Fast and Simple DFS-Based Planarity Testing and Embedding Algorithm

In this paper we give a new description of the planarity testing and embedding algorithm presented by Boyer and Myrvold [2]. Such a description gives, in our opinion, new insights on the combinatorial foundations of the algorithm. Especially, we give a detailed illustration of a fundamental phase of the algorithm, called walk-up. This phase is essential for a correct and efficient implementatio...

متن کامل

A Linear Algorithm for Finding a Maximal Planar Subgraph

We construct an optimal linear time algorithm for the maximal planar subgraph problem: given a graph G, nd a planar subgraph G 0 of G such that adding to G 0 any edge of G not present in G 0 leads to a non-planar graph. Our solution is based on a dynamic graph search procedure and a fast data structure for on-line planarity testing of triconnected graphs. Our algorithm can be transformed into a...

متن کامل

Upward Spirality and Upward Planarity Testing

The upward planarity testing problem is known to be NPhard. We describe an O(n)-time upward planarity testing and embedding algorithm for the class of digraphs that do not contain rigid triconnected components. We also present a new FPT algorithm that solves the upward planarity testing and embedding problem for general digraphs.

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 1992